using System.ComponentModel;
using Meebey.SmartIrc4net;

namespace Thunder.Irc.Parser
{
    /// <summary>
    /// Provides data for cancelable messages
    /// </summary>
    public class CancelMessageProcessingEventArgs : CancelEventArgs
    {
        /// <summary>
        /// Gets the <see cref="IrcMessageData"/>
        /// </summary>
        public IrcMessageData MessageData { get; private set; }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="data">The <see cref="IrcMessageData"/> to pass to the event</param>
        public CancelMessageProcessingEventArgs(IrcMessageData data)
        {
            this.MessageData = data;
        }
    }
}